package cn.wen.yinxiu.works.service.impl;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.wen.yinxiu.common.toolkit.PageUtils;
import cn.wen.yinxiu.common.toolkit.Query;

import cn.wen.yinxiu.works.dao.ImagesDao;
import cn.wen.yinxiu.works.entity.ImagesEntity;
import cn.wen.yinxiu.works.service.ImagesService;

@Component
@Service("imagesService")
public class ImagesServiceImpl extends ServiceImpl<ImagesDao, ImagesEntity> implements ImagesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ImagesEntity> page = this.page(
                new Query<ImagesEntity>().getPage(params),
                new QueryWrapper<ImagesEntity>()
        );

        return new PageUtils(page);
    }

}